package com.tencent.wxcloudrun.service.impl;

import com.tencent.wxcloudrun.dto.OrderCreateRequest;
import com.tencent.wxcloudrun.mapper.OrderkdMapper;
import com.tencent.wxcloudrun.service.OrderkdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/3/16 20:27
 * @description: TODO
 */
@Service
public class OrderkdServiceImpl implements OrderkdService {

    @Autowired
    private OrderkdMapper orderkdMapper;

    @Override
    public int addOderkd(String orderid, OrderCreateRequest json) {
        String provinceId = json.getProvinceId();
        String cityId = json.getCityId();
        String districtId = json.getDistrictId();
        String address = json.getAddress();
        String linkMan = json.getLinkMan();
        String mobile = json.getMobile();
        String code = json.getCode();
        orderkdMapper.addOderkd(orderid, provinceId, cityId, districtId, address, linkMan, mobile, code);




        return 0;
    }
}
